<html>
    <head>
        <title>Xmpp4Js Sample Client</title>
			<script type="text/javascript" src="lib/log4js.js"></script>
            <script type="text/javascript" src="lib/prototype.js"></script> 
            <script type="text/javascript" src="lib/dom-all.js"></script>
            <script type="text/javascript" src="lib/crypto.js"></script>
            <script type="text/javascript" src="lib/xmpp4js.js"></script>
			<script type="text/javascript" src="lib/rpc4xmpp.js"></script>
			<script type="text/javascript" src="lib/xmpp4gg.js"></script>
  
    </head>
    
	<body>
	Servis za zbrajanje dva broja c=Add(a,b);
    </body>
        
    <script type="text/javascript">
	var Add = function (a,b) {
	    c = a + b;
		return c;
    };
		
	window.onload = function() {
		client.login("admin", "grupa2a","161.53.65.135",  "service_add", "http://161.53.65.135:7070/http-bind/", false);				
		rpcxmpp.register("Add", Add);		
	};

	window.onunload = function() {
		client.Close();
	}
	</script>
            
    </body>
</html>